package com.xn2001.entity;

import ch.qos.logback.core.subst.Token;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by 乐心湖 on 2020/4/25 19:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "demo")
public class DemoData {
    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ExcelProperty("字符串标题")
    private String name;
//    @ExcelProperty("日期标题")
//    private Date date;
//    @ExcelProperty("数字标题")
//    private Double doubleData;
    /**
     * 忽略这个字段
     */
//    @ExcelIgnore
//    private String ignore;
}
